package com.example.base.config;

import com.example.base.properties.LoginProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@ConfigurationProperties(prefix = "assembly")
@ApiModel(value="AssemblyConfig对象", description="一些组件的基础配置")
public class AssemblyConfig {

    @ApiModelProperty("无需认证和授权就能访问的资源")
    private List<String> ignoring;

    @ApiModelProperty("登录配置")
    private LoginProperties login;
}
